// 健康建议规则
import  request  from "@/utils/axios";
import appName from "../appName"
const timeout = 900000;


/* ----------健康建议规则 start */

// 查询健康建议规则
export function getAdviceRuleListApi(params) {
  return request({
    url: appName.AUSCONFING + '/assistant/HealthAdvice/getAdviceRuleList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 保存健康建议规则包
export function saveHealthAdvRuleApi(params) {
  return request({
    url: appName.AUSCONFING + '/assistant/HealthAdvice/saveHealthAdvRule',
    method: 'post',
    data: params,
    timeout:timeout
  })
}


// 删除健康建议规则包
export function delHealthAdvRuleApi(params) {
  return request({
    url: appName.AUSCONFING + `/assistant/HealthAdvice/delHealthAdvRule?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}


// 导出风险规则
export function exportHealthAdvRuleApi(params) {
  return request({
    url: appName.AUSCONFING + '/assistant/HealthAdvice/exportHealthAdvRule',
    method: 'post',
    data: params,
    responseType: 'blob',
    timeout:timeout
  })
}

/* end */